import 'package:fish_redux/fish_redux.dart';
import 'package:flutter/material.dart';

class EditInfoViewState implements Cloneable<EditInfoViewState> {
  String title;
  TextEditingController editingController = TextEditingController();
  String paraName;

  @override
  EditInfoViewState clone() {
    return EditInfoViewState()
      ..title = title
      ..paraName = paraName
      ..editingController = editingController;
  }
}

EditInfoViewState initState(Map<String, dynamic> args) {
  return EditInfoViewState()
    ..title = args['title']
    ..paraName = args['paraName']
    ..editingController.text = args['value'];
}
